<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>


    <script>

        function push(arr , v1 , v2 , v3) {
            // 遍历实参
            //   注意：实参的第一个参数是数组，后面的可以任意传参
            for(var i = 1 ; i < arguments.length ; i++) {
                arr[arr.length] = arguments[i] ;
            }
            return arr.length ;
        }


        var arr = [1,2,3] ;
        push(arr , 'a' , 'b' , 'c') ;
        console.log(arr) ;




       

    </script>
    
</body>
</html>